package com.ruoyi.tws.service;

import com.ruoyi.tws.domain.TwsCompany;
import com.ruoyi.common.core.web.controller.BaseService;

import java.util.List;

/**
 * 货源方Service接口
 *
 * @author wms
 * @date 2022-01-20
 */
public interface ITwsCompanyService extends BaseService<TwsCompany> {

    /**
     * 新增货源方
     * @param twsCompany
     * @return
     */
    int add(TwsCompany twsCompany);

    /**
     * 修改货源方
     * @param twsCompany
     * @return
     */
    int edit(TwsCompany twsCompany);

    /**
     * 货源方审核
     * @param twsCompany
     * @return
     */
    int cert(TwsCompany twsCompany);

    /**
     * 货源方禁/启用
     */
    int stateChange(TwsCompany twsCompany);

    /**
     * 删除货源方
     */
    int deletes(List<Long> asList);

    /**
     * 查询物流公司的登录名
     * @return
     */
    String getUserNameByCompanyId(Long companyId);

    TwsCompany getCompanyByUserId(Long billUserId);
}
